package com.system.service;

import com.system.entity.*;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.CrossOrigin;

import java.util.List;
import java.util.Map;
@Service
@CrossOrigin
public interface takeCourseService {
    public List <SelectCourse> selectCourse(Long stu_id);
    public List<Grade> findByStudentId(Long stu_id);
    public List<Grade> findBySemester(Long stu_id,String semester);
    public List<Grade> findByCourseType(Long stu_id,String courseType);
    public List<Grade> findByCourseID(Long stu_id,Integer course_id);
    public List<Grade> findByCourseName(Long stu_id,String course_name);
    public List<Grade> findBySemName(Long stu_id,String semester,String course_name);
    public List<Grade> findBySemType(Long stu_id,String semester,String courseType);
    public List<Grade> findBySemId(Long stu_id,String semester,Integer course_id);
    public List<String> findGrade(Integer id);
    public int update(Takecourse takecourse);
    int deleteByPrimaryKey(TakecourseKey key);

    int insert(Takecourse record);
}
